package ru.scan2d.main.util;

import java.awt.image.BufferedImage;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;

import javax.imageio.ImageIO;

public class ReportUtil
{
	public static void saveImage(BufferedImage resultImage, String reportFileFolder)
	{
		try {
			File outputImageFile = new File(reportFileFolder + ".png");
			ImageIO.write(resultImage, "png", outputImageFile);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
